#define  _CRT_SECURE_NO_WARNINGS
#include "my_unordered_map.h"
#include "my_unordered_set.h"
void print(const unordered_map<string, string> up2)
{
	unordered_map<string, string>::const_iterator it1 = up2.begin();
	while (it1 != up2.end())
	{
		cout << it1->first << ":" << it1->second << endl;
		++it1;
	}
}
int main()
{
	unordered_set<int> st1;
	for (int i = 0; i < 10; i++)
		st1.insert(i);
	for (auto e : st1)
		cout << e << endl;
	unordered_map<string,string> up1;
	up1.insert({ "string","字符串" });
	up1.insert({ "sort","排序" });
	up1.insert({ "earse","删除" });
	up1.insert({ "apple","苹果" });
	for (auto e : up1)
		cout << e.first <<':' << e.second << endl;
	cout << up1["string"] << endl;
	unordered_map<string, string>::iterator it = up1.begin();
	while (it != up1.end())
	{
		cout << it->first << ":" << it->second << endl;
		++it;
	}
	print(up1);
	
	return 0;
}